package org.fuxia.im.core.socket;

import org.fuxia.im.core.server.ServerSideContext;

/**
 * 
 * @author fuxia
 * @create @date 2011-12-26-下午11:37:47
 * @comment 服务器端实现
 */
public interface ECServer
{

	ServerSideContext	context	= ServerSideContext.getContext();

	/**
	 * 绑定服务端口号
	 * 
	 * @param port
	 */
	public void bind(int port) throws Exception;

	/**
	 * 启动服务器
	 */
	public void start();

	/**
	 * 关闭服务
	 */
	public void shutdown();
}
